package com.qf.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.qf.mapper.DtsGoodsProductMapper;
import com.qf.pojo.DtsGoodsProduct;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;



@Service
public class ProductServiceImpl implements ProductService {

    @Autowired
    private DtsGoodsProductMapper productMapper;

    @Override
    public int productCount() {
        QueryWrapper<DtsGoodsProduct> queryWrapper = new QueryWrapper<>();
        queryWrapper.in("deleted",false);
        Integer count = productMapper.selectCount(queryWrapper);
        return count;
    }
}
